import request from "@/utils/request";
import {Result} from "@/model";
import {AxiosPromise} from "axios";
import {ManagementForm} from "@/api/management/types";


/**
 * 插入管理消息
 * @param data 条件
 * @return id
 */
export function insertManagement(data: ManagementForm): AxiosPromise<Result<number>> {
    return request({
        url: "/dome/management/add",
        method: "post",
        data,
    });
}